<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>路灯添加文档控制中心</title>
    <style type="text/css">
        #edui1_iframeholder{
            height: 340px !important;
        }
    </style>
    <script type="text/javascript" charset="utf-8" src="ueditor/third-party/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
        $(function(){

            //全选
            $("#selectAll").click(function(){
                $("input[type=checkbox]").each(function () {
                    var that = $(this);
                    that.prop("checked", true);
                });
            });

            //反选
            $("#convertAll").click(function(){
                $("input[type=checkbox]").each(function () {
                    var that = $(this);
                    // console.log(that.get(0).checked);
                    // console.log(that.is(':checked');
                    // console.log(that.prop('checked'));
                    if (that.is(':checked')) {
                        that.removeProp("checked");
                    } else {
                        that.prop("checked", true);
                    }
                });
            });
        });
    </script>
</head>
<body>
<form name="controller" method="post" action="index_do.php" >

    <fieldset>
        <legend>选择同步站点</legend>
        <div class="container">
            <ul>
                <li>
                   <button type="button" name="selectAll" id="selectAll">全选</button>
                   <button type="button" name="convertAll" id="convertAll">反选</button>
                </li>
                <li>
                    <input id="site_1" type="checkbox" name="sitename[]" value="1" checked="checked">
                    <label for="site_1">普源  http://www.road-lamp.cn</label>
                </li>
                <li>
                    <input id="site_2" type="checkbox" name="sitename[]" value="2" checked="checked">
                    <label for="site_2">新博城  http://www.china-traffic.com</label>
                </li>
                <li>
                    <input id="site_3" type="checkbox" name="sitename[]" value="3" checked="checked">
                    <label for="site_3">中鸽  http://www.zhgezm.com</label>

                </li>
                <li>
                    <input id="site_4" type="checkbox" name="sitename[]" value="4" checked="checked">
                    <label for="site_4">飞普  http://www.feipuzm.com</label>

                </li>
                <li>
                    <input id="site_5" type="checkbox" name="sitename[]" value="5" checked="checked">
                    <label for="site_5">典光  http://www.xadgzm.com</label>

                </li>
                <li>
                    <input id="site_6" type="checkbox" name="sitename[]" value="6" checked="checked">
                    <label for="site_6">江山之光  http://www.jszgld.com</label>

                </li>
                <li>
                    <input id="site_7" type="checkbox" name="sitename[]" value="7" checked="checked">
                    <label for="site_7">祺泰  http://www.qitaihn.com</label>

                </li>
                <li>
                    <input id="site_8" type="checkbox" name="sitename[]" value="8" checked="checked">
                    <label for="site_8">国品  http://www.hnguopin.com</label>

                </li>
                <li>
                    <input id="site_9" type="checkbox" name="sitename[]" value="9" checked="checked">
                    <label for="site_9">鸥朗  http://www.olang888.com</label>
                </li>
            </ul>

        </div>
    </fieldset>

    <fieldset>
        <legend>文章标题：</legend>
        <div class="container">
          <input type="text" name="title" value="" style="width: 800px;height: 40px;font-size: 22px;border: 2px solid green;">
        </div>
    </fieldset>

    <fieldset>
        <legend>文章内容：</legend>
        <div class="container">
            <textarea name="content" rows="" cols="" style="width: 0; height: 0;  visibility: hidden; position: fixed; left: -100%"></textarea>
                <script type="text/javascript" charset="utf-8" src="ueditor/ueditor.config.js"></script>
                <script type="text/javascript" charset="utf-8" src="ueditor/ueditor.all.min.js"></script>
                <link rel="stylesheet" type="text/css" href="ueditor/themes/default/css/ueditor.css"/>
                <script type="text/plain" id="content" name="content"  style="width:100%;" ></script>
                <script type="text/javascript">+function() {setTimeout(function () {if (typeof UE == "undefined") {document.write("编辑器 UE 对象不存在，请刷新重试！");} UE.getEditor("content"); }, 500); }();</script>

        </div>
    </fieldset>

    <fieldset>
        <legend>控制按钮：</legend>
        <div class="container">
            <input type="submit" name="submit" value="提交">
            <input type="reset" name="reset" value="重置">
        </div>
    </fieldset>
</form>
</body>
</html>